//
//  SimplePickerViewController.h
//  SKStock
//
//  Created by thPark on 11. 1. 6..
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@class SimplePickerViewController;

@protocol SimplePickerViewControllerDelegate

- (void)simplePickerViewControllerDidSelected:(SimplePickerViewController *)controller selectedIndex:(int)index;
- (void)simplePickerViewControllerDidCancelled:(SimplePickerViewController *)controller;

@end


@interface SimplePickerViewController :
UIViewController<UIPickerViewDelegate, UIPickerViewDataSource> {
	IBOutlet UIPickerView * _pickerView;
	NSArray * _dataArray;
	int _pickerIdx;
	id<SimplePickerViewControllerDelegate> _delegate;
	
}

/**
	Done
	@param sender <#sender description#>
 */
- (IBAction)doneButtonAction:(id)sender;

/**
	Cancel
	@param sender <#sender description#>
 */
- (IBAction)cancelButtonAction:(id)sender;

@property (retain, nonatomic) NSArray * dataArray;
@property (nonatomic, assign) id<SimplePickerViewControllerDelegate> delegate;

- (void)setPickerIndex:(int)idx;

@end
